The subtypes listed here are for example only. The display manager will find _all_ panels
with the appropriate types. These panels return class information that is used to devide them
up into groups to be displayed in the AV Windows (class means "geometry" or "color" or other groupings
like that.
}
CONST
kAVPanelType = 'avpc'; { Panel subtypes }
kBrightnessPanelSubType = 'brit';
kContrastPanelSubType = 'cont';
kBitDepthPanelSubType = 'bitd';
kAVEngineType = 'avec'; { Engine subtypes }
kBrightnessEngineSubType = 'brit';
kContrastEngineSubType = 'cont'; { kBitDepthEngineSubType = 'bitd', // Not used }
kAVPortType = 'avdp'; { subtypes are defined in each port's public .h file }
{
PortComponent subtypes are up to the port and display manager does not use the subtype
to find port components. Instead, display manager uses an internal cache to search for portcompoennts.
It turns out to be useful to have a unique subtype so that engines can see if they should apply themselves to
a particular port component.
PortKinds are the "class" of port. When a port is registered with display manager (creating a display ID), the
caller of DMNewDisplayIDByPortComponent passes a portKind. Ports of this type are returned by
DMNewDevicePortList.
PortKinds are NOT subtypes of components
PortKinds ARE used to register and find port components with Display Manager. Here are the basic port kinds:
Video displays are distinct from video out because there are some video out ports that are not actaully displays.
if EZAV is looking to configure displays, it needs to look for kAVVideoDisplayPortKind not kAVVideoOutPortKind.
}
kAVVideoDisplayPortKind = 'pkdo'; { Video Display (CRT or panel display) }
kAVVideoOutPortKind = 'pkvo'; { Video out port (camera output). }
kAVVideoInPortKind = 'pkvi'; { Video in port (camera input) }
kAVSoundOutPortKind = 'pkso'; { Sound out port (speaker or speaker jack) }
kAVSoundInPortKind = 'pksi'; { Sound in port (microphone or microphone jack) }
kAVDeviceType = 'avdc'; { Device Component subtypes are up to the manufacturor since each device may contain multiple function types (eg telecaster) }
kAVDisplayDeviceKind = 'dkvo'; { Display device }
{ Device Component subtypes are up to the manufacturor since each device may contain multiple function types (eg telecaster) }
kAVCategoryType = 'avcc';
kAVSoundInSubType = 'avao';
kAVSoundOutSubType = 'avai';
kAVVideoInSubType = 'vdin';
kAVVideoOutSubType = 'vdou';
kAVInvalidType = 'badt'; { Some calls return a component type, in case of errors, these types are set to kAVInvalidComponentType }
{
Constants for Panel Classes (used to build buttons in AVSetup)
but is generic to all panels
}
kAVPanelClassDisplayDefault = 'cdsp';
kAVPanelClassColor = 'cclr';
kAVPanelClassGeometry = 'cgeo';
kAVPanelClassSound = 'csnd';
kAVPanelClassPreferences = 'cprf';
{ ============================= }
{ Component interface revision levels and history }
{ ============================= }
kAVPanelComponentInterfaceRevOne = 1;
kAVEngineComponentInterfaceRevOne = 1;
kAVPortComponentInterfaceRevOne = 1;
kAVDeviceComponentInterfaceRevOne = 1;
kBaseAVComponentSelector = 256; { First apple-defined selector for engine components }
{ ============================= }
{ Panel Standard component selectors }
{ ============================= }
kAVPanelFakeRegisterSelect = -5; { -5 }
kAVPanelSetCustomDataSelect = 0;
kAVPanelGetDitlSelect = 1;
kAVPanelGetTitleSelect = 2;
kAVPanelInstallSelect = 3;
kAVPanelEventSelect = 4;
kAVPanelItemSelect = 5;
kAVPanelRemoveSelect = 6;
kAVPanelValidateInputSelect = 7;
kAVPanelGetSettingsIdentifiersSelect = 8;
kAVPanelGetSettingsSelect = 9;
kAVPanelSetSettingsSelect = 10;
kAVPanelSelectorGetFidelity = 256;
kAVPanelSelectorTargetDevice = 257;
kAVPanelSelectorGetPanelClass = 258;
{ ============================= }
{ Engine Standard component selectors }
{ ============================= }
kAVEngineSelectorGetEngineFidelity = 256;
kAVEngineSelectorTargetDevice = 257;
{ ============================= }
{ Video Port Specific calls }
{ ============================= }
kAVPortCheckTimingMode = 0;
{ ============================= }
{ AV Port Specific calls }
{ ============================= }
kAVPortGetAVDeviceFidelity = 256; { Port Standard Component selectors }
kAVPortGetWiggle = 257;
kAVPortSetWiggle = 258;
kAVPortGetName = 259;
kAVPortGetGraphicInfo = 260;
kAVPortSetActive = 261;
kAVPortGetActive = 262;
kAVPortUnsed1 = 263; { Selector removed as part of API change. We don't want to mess up the following selectors, so we put in this spacer (ie kPadSelector). }
kAVPortGetAVID = 264;
kAVPortSetAVID = 265;
kAVPortSetDeviceAVID = 266; { For registrar to set device (instead of hitting global directly) -- should only be called once }
kAVPortGetDeviceAVID = 267; { Called by display mgr for generic ports }
kAVPortGetPowerState = 268;
kAVPortSetPowerState = 269;
{ ============================= }
{ Device Component Standard Component selectors }
{ ============================= }
kAVDeviceGetName = 256;
kAVDeviceGetGraphicInfo = 257;
kAVDeviceGetPowerState = 258;
kAVDeviceSetPowerState = 259;
kAVDeviceGetAVID = 260; { Not yet implemented }
kAVDeviceSetAVID = 261; { For registrar to set AVID (should be called only once) }
{ ============================= }
{ Engine Standard component selectors }
{ ============================= }
FUNCTION AVEngineComponentGetFidelity(engineComponent: ComponentInstance; displayID: DisplayIDType; VAR engineFidelity: DMFidelityType): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0008, $0100, $7000, $A82A;
{$ENDC}
FUNCTION AVEngineComponentTargetDevice(engineComponent: ComponentInstance; displayID: DisplayIDType): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0101, $7000, $A82A;
{$ENDC}
{ ============================= }
{ Panel Standard Component calls }
{ ============================= }
FUNCTION AVPanelFakeRegister(ci: ComponentInstance): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0000, $FFFB, $7000, $A82A;
{$ENDC}
FUNCTION AVPanelSetCustomData(ci: ComponentInstance; theCustomData: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0000, $7000, $A82A;
{$ENDC}
FUNCTION AVPanelGetDitl(ci: ComponentInstance; VAR ditl: Handle): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0001, $7000, $A82A;
{$ENDC}
FUNCTION AVPanelGetTitle(ci: ComponentInstance; title: StringPtr): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0002, $7000, $A82A;
{$ENDC}
FUNCTION AVPanelInstall(ci: ComponentInstance; dialog: DialogPtr; itemOffset: INTEGER): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0006, $0003, $7000, $A82A;
{$ENDC}
FUNCTION AVPanelEvent(ci: ComponentInstance; dialog: DialogPtr; itemOffset: INTEGER; VAR event: EventRecord; VAR itemHit: INTEGER; VAR handled: BOOLEAN): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0012, $0004, $7000, $A82A;
{$ENDC}
FUNCTION AVPanelItem(ci: ComponentInstance; dialog: DialogPtr; itemOffset: INTEGER; itemNum: INTEGER): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0008, $0005, $7000, $A82A;
{$ENDC}
FUNCTION AVPanelRemove(ci: ComponentInstance; dialog: DialogPtr; itemOffset: INTEGER): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0006, $0006, $7000, $A82A;
{$ENDC}
FUNCTION AVPanelValidateInput(ci: ComponentInstance; VAR ok: BOOLEAN): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0007, $7000, $A82A;
{$ENDC}
FUNCTION AVPanelGetSettingsIdentifiers(ci: ComponentInstance; VAR theID: INTEGER; VAR theType: OSType): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0008, $7000, $A82A;
{$ENDC}
FUNCTION AVPanelGetSettings(ci: ComponentInstance; VAR userDataHand: Handle; flags: LONGINT; theDialog: DialogPtr; itemsOffset: LONGINT): ComponentResult;
FUNCTION AVPanelGetFidelity(panelComponent: ComponentInstance; displayID: DisplayIDType; VAR panelFidelity: DMFidelityType): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0008, $0100, $7000, $A82A;
{$ENDC}
FUNCTION AVPanelComponentTargetDevice(panelComponent: ComponentInstance; displayID: DisplayIDType; theDialog: DialogPtr; itemsOffset: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $000C, $0101, $7000, $A82A;
{$ENDC}
FUNCTION AVPanelComponentGetPanelClass(panelComponent: ComponentInstance; VAR panelClass: ResType; VAR subClass: ResType; reserved1: Ptr; reserved2: Ptr): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0010, $0102, $7000, $A82A;
{$ENDC}
{ ============================= }
{ Port Component Standard Component selectors }
{ ============================= }
FUNCTION AVPortGetAVDeviceFidelity(portComponent: ComponentInstance; deviceAVID: AVIDType; VAR portFidelity: DMFidelityType): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0008, $0100, $7000, $A82A;
{$ENDC}
FUNCTION AVPortGetWiggle(portComponent: ComponentInstance; VAR wiggleDevice: BOOLEAN): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0101, $7000, $A82A;
{$ENDC}
FUNCTION AVPortSetWiggle(portComponent: ComponentInstance; wiggleDevice: BOOLEAN): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0002, $0102, $7000, $A82A;
{$ENDC}
FUNCTION AVPortGetName(portComponent: ComponentInstance; VAR portName: Str255): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0103, $7000, $A82A;
{$ENDC}
FUNCTION AVPortGetGraphicInfo(portComponent: ComponentInstance; VAR thePict: PicHandle; VAR theIconSuite: Handle; theLocation: AVLocationPtr): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $000C, $0104, $7000, $A82A;
{$ENDC}
FUNCTION AVPortSetActive(portComponent: ComponentInstance; setActive: BOOLEAN): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0002, $0105, $7000, $A82A;
{$ENDC}
FUNCTION AVPortGetActive(portComponent: ComponentInstance; VAR isPortActive: BOOLEAN; VAR portCanBeActivated: BOOLEAN; reserved: UNIV Ptr): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0008, $0106, $7000, $A82A;
{$ENDC}
FUNCTION AVPortGetAVID(portComponent: ComponentInstance; VAR avDeviceID: AVIDType): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0108, $7000, $A82A;
{$ENDC}
FUNCTION AVPortSetAVID(portComponent: ComponentInstance; avDeviceID: AVIDType): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0109, $7000, $A82A;
{$ENDC}
FUNCTION AVPortSetDeviceAVID(portComponent: ComponentInstance; avDeviceID: AVIDType): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $010A, $7000, $A82A;
{$ENDC}
FUNCTION AVPortGetDeviceAVID(portComponent: ComponentInstance; VAR avDeviceID: AVIDType): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $010B, $7000, $A82A;
{$ENDC}
FUNCTION AVPortGetPowerState(deviceComponent: ComponentInstance; getPowerState: AVPowerStatePtr): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $010C, $7000, $A82A;
{$ENDC}
FUNCTION AVPortSetPowerState(deviceComponent: ComponentInstance; setPowerState: AVPowerStatePtr): ComponentResult;
FUNCTION AVDeviceGetName(portComponent: ComponentInstance; VAR portName: Str255): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0100, $7000, $A82A;
{$ENDC}
FUNCTION AVDeviceGetGraphicInfo(portComponent: ComponentInstance; VAR thePict: PicHandle; VAR theIconSuite: Handle; theLocation: AVLocationPtr): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $000C, $0101, $7000, $A82A;
{$ENDC}
FUNCTION AVDeviceGetPowerState(deviceComponent: ComponentInstance; getPowerState: AVPowerStatePtr): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0102, $7000, $A82A;
{$ENDC}
FUNCTION AVDeviceSetPowerState(deviceComponent: ComponentInstance; setPowerState: AVPowerStatePtr): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0103, $7000, $A82A;
{$ENDC}
FUNCTION AVDeviceSetAVID(deviceComponent: ComponentInstance; avDeviceID: AVIDType): ComponentResult;